<template>
    <div>
        News组件--{{ num }}

        <br>
        <br>
        {{ myList }}

    </div>
</template>

<script>
import { defineComponent } from "vue";
import { mapState } from "vuex";
export default defineComponent({
    data() {
        return {};
    },
    methods: {},
    computed: {
        ...mapState({
            num: (state) => state.count,
            myList: (state) => state.list,
        }),
    },
    mounted() { },
});
</script>

<style lang="scss">
//cnpm install -D sass-loader node-sass
</style>